package com.gxa.weixing.pc.service;

import com.gxa.weixing.core.exception.BusinessException;
import com.gxa.weixing.core.pojo.BalanceLog;
import com.gxa.weixing.core.pojo.User;
import com.gxa.weixing.core.service.BaseService;

import java.text.ParseException;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @Author  lirucong
 * @Date 11:02 2022/1/6
 */
public interface UserService extends BaseService<User>{
    /**
     *分页查询，获取用户记录
     */
    List<User> getUserListByPage(String code, String nickName, Date startTime, Date endTime, Integer page, Integer size) throws BusinessException;

    /**
     *分页查询，获取用户记录总数
     */
    Integer getUserListPageCount(String code, String nickName, Date startTime, Date endTime) throws BusinessException;

    /**
     *根据传入的用户id删除
     */
    void deleteById(Long id) throws BusinessException;

    /**
     *获取余额的申请列表
     */
    List<Map<String,Object>> getWithdrawByPage(Map<String,Object> map) throws BusinessException, ParseException;

    /**
     *获取余额的申请列表的总数
     */
    Integer getWithdrawByPageCount(Map<String,Object> map);

    /**
     *修改审核的状态
     */
    void updateLogStatus(Long id,Integer status,String remark) throws BusinessException;

}
